package com.NewsService;

import com.entity.News;
import com.entity.NewsDetail;
import com.entity.User;

import java.util.List;

public interface NewsService {
    //查
    public List<News> ServiceSelectAll();
    public News ServiceSselectById(int id);
    //分页查询
    public List<News> ServicesSlectPage(int index,int crencount);

    public User getSeleUser(String name, String password);

    //增
    public int ServiceSinsertNews(NewsDetail newsDetail);
    //删
    public int ServiceSdeleteById(int id);
    public int ServiceSdeleteByName(String name);


    //改
    public int ServiceSupdateById(int id);
    public int ServiceSupdateByByName(String name);

    public int ServiceUpdateNews(News news);

}
